<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
     <%@page import="sever.*,entity.*,java.util.*,util.*"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
      <table border="1" cellpadding="0" cellspacing="0">
             <tr>
                 <td>学号</td><td>姓名</td><td>手机号</td>
             </tr>
             <%
               AddSubject service=new AddSubject();
             List<Subject> list=service.add(100,"aaa",10,2);
             for(Subject s:list){
            	 %>
            	 <tr>
            	   <td><%=s.getId() %></td><td><%=s.getSubjectname() %></td><td><%=s.getClasshour() %></td>
            	<td><%=s.getGradeid() %></td>
            	 </tr>
            	 <%} %>
             }
         </table>
</body>
</html>